from django.urls import path

from . import views

urlpatterns = [
    path('channels/',views.ChannelsListview.as_view()),
    path('article/<int:id>/channel/',views.ArticleView.as_view()),
    path('article/-1/channel/',views.ArticleView.as_view()),
    path('article/<int:pk>/collect/',views.ArticlecollectView.as_view({'put':'partial_update'})),#错的
    path('article/<int:pk>/',views.ArticlelistView.as_view()),
    path('article/',views.ArticlePubView.as_view()),
    path('labels/',views.LabelView.as_view()),
    path('article/<int:pk>/publish_comment/',views.ArticlecommentView.as_view({'post':'create'})),
    # path('article/undefined/publish_comment/',views.ArticlecommentView.as_view({'post':'create'})),
    path('articles/search/',views.ArticlesearchView.as_view({'get':'list'})),

    path('upload/common/', views.UploadEditorImg.as_view()),
    path('upload/avatar/', views.UploadAvatar.as_view()),

]